package openbang.account.service.entity;


import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import openbang.common.vo.StatusEnum;

import com.google.gwt.user.client.rpc.IsSerializable;

import java.util.Date;


/**
 * 部门
 * 
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Department implements IsSerializable {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;

	@Persistent
	private String name="";

	@Persistent
	private String code="";

	@Persistent
	private Long parentId = 0L;

	@Persistent
	private String remark="";

	@Persistent
	private Integer status=StatusEnum.PENDING_VERIFY.getCode();

	@Persistent
	private Date regTime=new Date();

	
	@Persistent
	private Date updTime=new Date();

	
    public Department() {
    }


	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
}